package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName dispatch_info
 */
@TableName(value ="dispatch_info")
public class DispatchInfo implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String logisticsnumber;

    /**
     * 
     */
    private String driver;

    /**
     * 
     */
    private String driverphone;

    /**
     * 
     */
    private String carmodel;

    /**
     * 
     */
    private String licenseplate;

    /**
     * 
     */
    private String recipientaddress;

    /**
     * 
     */
    private String usetime;

    /**
     * 
     */
    private String driverreport;

    /**
     * 
     */
    private String carreport;

    /**
     * 
     */
    private String ordernumber;

    /**
     * 
     */
    private String identifycode;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getLogisticsnumber() {
        return logisticsnumber;
    }

    /**
     * 
     */
    public void setLogisticsnumber(String logisticsnumber) {
        this.logisticsnumber = logisticsnumber;
    }

    /**
     * 
     */
    public String getDriver() {
        return driver;
    }

    /**
     * 
     */
    public void setDriver(String driver) {
        this.driver = driver;
    }

    /**
     * 
     */
    public String getDriverphone() {
        return driverphone;
    }

    /**
     * 
     */
    public void setDriverphone(String driverphone) {
        this.driverphone = driverphone;
    }

    /**
     * 
     */
    public String getCarmodel() {
        return carmodel;
    }

    /**
     * 
     */
    public void setCarmodel(String carmodel) {
        this.carmodel = carmodel;
    }

    /**
     * 
     */
    public String getLicenseplate() {
        return licenseplate;
    }

    /**
     * 
     */
    public void setLicenseplate(String licenseplate) {
        this.licenseplate = licenseplate;
    }

    /**
     * 
     */
    public String getRecipientaddress() {
        return recipientaddress;
    }

    /**
     * 
     */
    public void setRecipientaddress(String recipientaddress) {
        this.recipientaddress = recipientaddress;
    }

    /**
     * 
     */
    public String getUsetime() {
        return usetime;
    }

    /**
     * 
     */
    public void setUsetime(String usetime) {
        this.usetime = usetime;
    }

    /**
     * 
     */
    public String getDriverreport() {
        return driverreport;
    }

    /**
     * 
     */
    public void setDriverreport(String driverreport) {
        this.driverreport = driverreport;
    }

    /**
     * 
     */
    public String getCarreport() {
        return carreport;
    }

    /**
     * 
     */
    public void setCarreport(String carreport) {
        this.carreport = carreport;
    }

    /**
     * 
     */
    public String getOrdernumber() {
        return ordernumber;
    }

    /**
     * 
     */
    public void setOrdernumber(String ordernumber) {
        this.ordernumber = ordernumber;
    }

    /**
     * 
     */
    public String getIdentifycode() {
        return identifycode;
    }

    /**
     * 
     */
    public void setIdentifycode(String identifycode) {
        this.identifycode = identifycode;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DispatchInfo other = (DispatchInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getLogisticsnumber() == null ? other.getLogisticsnumber() == null : this.getLogisticsnumber().equals(other.getLogisticsnumber()))
            && (this.getDriver() == null ? other.getDriver() == null : this.getDriver().equals(other.getDriver()))
            && (this.getDriverphone() == null ? other.getDriverphone() == null : this.getDriverphone().equals(other.getDriverphone()))
            && (this.getCarmodel() == null ? other.getCarmodel() == null : this.getCarmodel().equals(other.getCarmodel()))
            && (this.getLicenseplate() == null ? other.getLicenseplate() == null : this.getLicenseplate().equals(other.getLicenseplate()))
            && (this.getRecipientaddress() == null ? other.getRecipientaddress() == null : this.getRecipientaddress().equals(other.getRecipientaddress()))
            && (this.getUsetime() == null ? other.getUsetime() == null : this.getUsetime().equals(other.getUsetime()))
            && (this.getDriverreport() == null ? other.getDriverreport() == null : this.getDriverreport().equals(other.getDriverreport()))
            && (this.getCarreport() == null ? other.getCarreport() == null : this.getCarreport().equals(other.getCarreport()))
            && (this.getOrdernumber() == null ? other.getOrdernumber() == null : this.getOrdernumber().equals(other.getOrdernumber()))
            && (this.getIdentifycode() == null ? other.getIdentifycode() == null : this.getIdentifycode().equals(other.getIdentifycode()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getLogisticsnumber() == null) ? 0 : getLogisticsnumber().hashCode());
        result = prime * result + ((getDriver() == null) ? 0 : getDriver().hashCode());
        result = prime * result + ((getDriverphone() == null) ? 0 : getDriverphone().hashCode());
        result = prime * result + ((getCarmodel() == null) ? 0 : getCarmodel().hashCode());
        result = prime * result + ((getLicenseplate() == null) ? 0 : getLicenseplate().hashCode());
        result = prime * result + ((getRecipientaddress() == null) ? 0 : getRecipientaddress().hashCode());
        result = prime * result + ((getUsetime() == null) ? 0 : getUsetime().hashCode());
        result = prime * result + ((getDriverreport() == null) ? 0 : getDriverreport().hashCode());
        result = prime * result + ((getCarreport() == null) ? 0 : getCarreport().hashCode());
        result = prime * result + ((getOrdernumber() == null) ? 0 : getOrdernumber().hashCode());
        result = prime * result + ((getIdentifycode() == null) ? 0 : getIdentifycode().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", logisticsnumber=").append(logisticsnumber);
        sb.append(", driver=").append(driver);
        sb.append(", driverphone=").append(driverphone);
        sb.append(", carmodel=").append(carmodel);
        sb.append(", licenseplate=").append(licenseplate);
        sb.append(", recipientaddress=").append(recipientaddress);
        sb.append(", usetime=").append(usetime);
        sb.append(", driverreport=").append(driverreport);
        sb.append(", carreport=").append(carreport);
        sb.append(", ordernumber=").append(ordernumber);
        sb.append(", identifycode=").append(identifycode);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}